<?php /* Smarty version Smarty-3.0.7, created on 2011-09-11 17:48:04
         compiled from "D:\AonzWebDev\InnanaWorkspace\InnanaWebProject/themes/innana/webboard-new-topic.tpl" */ ?>
<?php /*%%SmartyHeaderCode:49924e6c91e415ded8-92509462%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0db6994ac24584ec9359fd24a4987abe7f81db8d' => 
    array (
      0 => 'D:\\AonzWebDev\\InnanaWorkspace\\InnanaWebProject/themes/innana/webboard-new-topic.tpl',
      1 => 1315735952,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '49924e6c91e415ded8-92509462',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_modifier_escape')) include 'D:\AonzWebDev\InnanaWorkspace\InnanaWebProject\tools\smarty\plugins\modifier.escape.php';
?><!-- Webboard Template : Post a new topic -->
<?php ob_start(); ?>
		<?php if ($_smarty_tpl->getVariable('post_action')->value=='BOARD'){?>
			<a href="<?php echo $_smarty_tpl->getVariable('back')->value;?>
">
			<?php echo smartyTranslate(array('s'=>'Webboard'),$_smarty_tpl);?>

			</a>
		<?php }elseif($_smarty_tpl->getVariable('post_action')->value=='TOPIC'){?>
			<a href="webboard.php">
			<?php echo smartyTranslate(array('s'=>'Webboard'),$_smarty_tpl);?>

			</a>
			<span class="navigation-pipe"><?php echo $_smarty_tpl->getVariable('navigationPipe')->value;?>
</span>
			<a href="<?php echo $_smarty_tpl->getVariable('back')->value;?>
">
				<?php echo smarty_modifier_truncate(stripslashes(smarty_modifier_escape($_smarty_tpl->getVariable('topic_title')->value,'htmlall')),30);?>

			</a>
		<?php }?>
	<span class="navigation-pipe"><?php echo $_smarty_tpl->getVariable('navigationPipe')->value;?>
</span>
	<?php if ($_smarty_tpl->getVariable('post_action')->value=='BOARD'){?>
		<?php echo smartyTranslate(array('s'=>'New Topic'),$_smarty_tpl);?>

	<?php }elseif($_smarty_tpl->getVariable('post_action')->value=='TOPIC'){?>
		<?php echo smartyTranslate(array('s'=>'Reply'),$_smarty_tpl);?>

	<?php }?>	
<?php  Smarty::$_smarty_vars['capture']['path']=ob_get_clean();?>
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./breadcrumb.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php $_template = new Smarty_Internal_Template(($_smarty_tpl->getVariable('tpl_dir')->value)."./errors.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>

<!-- markItUp! -->
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('content_dir')->value;?>
js/jquery/markitupeditor/markitup/jquery.markitup.pack.js"></script>
<!-- markItUp! toolbar settings -->
<script type="text/javascript" src="<?php echo $_smarty_tpl->getVariable('content_dir')->value;?>
js/jquery/markitupeditor/markitup/sets/bbcode/set.js"></script>
<!-- markItUp! skin -->
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('content_dir')->value;?>
js/jquery/markitupeditor/markitup/skins/markitup/style.css" />
<!--  markItUp! toolbar skin -->
<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->getVariable('content_dir')->value;?>
js/jquery/markitupeditor/markitup/sets/bbcode/style.css" />

<script type="text/javascript">
//use jQuery 1.2.6 default
$(document).ready(function() {
	$('#bb-editor').markItUp(mySettings);
			
});
//Check length of input text inside textarea
function imposeMaxLength( object, maxChars)
{
	var len = object.value.length;
    if (len >= maxChars) {
    	object.value = object.value.substring(0, maxChars);
    }
    $('#word_left').text(( maxChars - len ) < 0 ? 0 :( maxChars - len ) );
}
</script>

<div id="my-webboard">
	<?php if ($_smarty_tpl->getVariable('post_action')->value=='BOARD'){?>
	<h4 class="editor_header_new_topic">
	<?php }elseif($_smarty_tpl->getVariable('post_action')->value=='TOPIC'){?>
	<h4 class="editor_header_reply">
	<?php }?>	
	</h4>
	<form id="post-msg-form" action="webboard.php" method="post">
	<fieldset>
		<input type="hidden" name="action" value="submit_post" />
		<input type="hidden" name="post_action" value="<?php echo $_smarty_tpl->getVariable('post_action')->value;?>
" />
		<input type="hidden" name="back" value="<?php echo $_smarty_tpl->getVariable('back')->value;?>
" />
		<?php if ($_smarty_tpl->getVariable('post_action')->value=='BOARD'){?>
		<input type="hidden" name="topic_id" value="0" />
		<?php }else{ ?>
		<input type="hidden" name="topic_id" value="<?php echo $_smarty_tpl->getVariable('topic_id')->value;?>
" />
		<?php }?>
		<p>
			<label for="topic_title">Topic<span class="required_field_marker">*<span></label>
			<span>
				<?php if ($_smarty_tpl->getVariable('post_action')->value=='BOARD'){?>
				<input id="topic_title" name="topic_title" maxlength="100" value="<?php if (isset($_POST['topic_title'])){?><?php echo stripslashes(smarty_modifier_escape($_POST['topic_title'],'htmlall'));?>
<?php }?>" type="text" size="78">
				<?php }elseif($_smarty_tpl->getVariable('post_action')->value=='TOPIC'){?>
				<input type="text" id="topic_title" disabled="disabled" value="<?php echo smarty_modifier_truncate(stripslashes(smarty_modifier_escape($_smarty_tpl->getVariable('topic_title')->value,'htmlall')),30);?>
" size="50"/> 
				<?php }?>
			</span>
		</p>
		<p>
			<label for="bb-editor">Message<span class="required_field_marker">*<span></label>
			<span>
				<span id="word_count_panel" style="padding-left: 10px;"><span id="word_left">1000</span> words left ( Maximum 1000 ).</span>
				<textarea id="bb-editor" name="topic_content" cols="80" rows="20" onkeyup="imposeMaxLength(this, 1000);"><?php if (isset($_POST['topic_content'])){?><?php echo stripslashes(smarty_modifier_escape($_POST['topic_content'],'htmlall'));?>
<?php }?></textarea>
			</span>
		</p>
		<p>
			<label for="display_name">Posted by</label>
			<span>
				<input id="display_name" name="author" maxlength="10" value="<?php if (isset($_POST['author'])){?><?php echo stripslashes(smarty_modifier_escape($_POST['author'],'htmlall'));?>
<?php }?>" type="text" size="28">
				<span class="field_desc">Note: Logged-in user can left this blank.</span> 
			</span>
		</p>
		<p>
			<label style="float: left;padding-right: 5px">Validation Code<span class="required_field_marker">*<span></label>
			<div style="float: left;">
				<img id="captcha" src="/tools/phpcaptcha/securimage_show_me.php" alt="CAPTCHA Image" />
				<div>
					<a href="#" onclick="document.getElementById('captcha').src = '/tools/phpcaptcha/securimage_show_me.php?' + Math.random(); return false"><img id="captcha" src="/tools/phpcaptcha/images/refresh.png" alt="Reload" title="Reload Image"/></a>
					<input type="text" id="captcha_code" name="captcha_code" size="16" maxlength="6" />
				</div>
			</div>
		</p>
		<p style="clear: both;padding-top: 10px">
			<input type="submit" value="           " class="submit_post_button" />
		</p>
	</fieldset>
	</form>
	
	
</div>